package showtime.framework.algorithm.astar
{
	/**
	 * @project AstarDemo
	 * @date 2011-6-29
	 * @author 绿豆蛙
	 * 
	 */
	public class Node
	{
		public var x:int = 0;
		public var y:int = 0;
		public var f:Number = 0;
		public var g:Number = 0;
		public var h:Number = 0;
		
		public var walkable:Boolean = true;
		public var parent:Node = null;
		public var costMultiplier:Number = 1;
		
		
		public function Node(x:int, y:int, walkable:Boolean = true)
		{
			this.x = x;
			this.y = y;
			this.walkable = walkable;
		}
	}
}